package com.ruoyi.common.constant;

/**
 * 微信支付相关常量配置
 */
public class WXConstants {
    // 商户基础配置
    public static final String MCHID = "19xxxxxxxx";                         // 微信支付商户号，获取方式：https://pay.weixin.qq.com/doc/v3/partner/4013080340
    public static final String CERTIFICATE_SERIAL_NO = "1DDE55AD98Exxxxxxxxxx";              // 商户API证书序列号，获取方式：https://pay.weixin.qq.com/doc/v3/partner/4013058924
    public static final String PRIVATE_KEY_PATH = "/resources/to/apiclient_key.pem";    // PKCS#8格式私钥文件路径
    public static final String WECHATPAY_PUBLIC_KEY_ID = "PUB_KEY_ID_xxxxxxxxxxxxx";           // 微信支付公钥ID，获取方式：https://pay.weixin.qq.com/doc/v3/partner/4013038589
    public static final String WECHATPAY_PUBLIC_KEY_PATH = "/resources/to/wxp_pub.pem";          // 微信支付公钥文件路径

    // 服务商户配置
    public static final String SP_APPID = "wx8888888888888888";
    public static final String SP_MCHID = "1230000109";

    // 子商户配置
    public static final String SUB_APPID = "wxd678efh567hg6999";
    public static final String SUB_MCHID = "1900000109";

    public static final String ORDER_DESCRIPTION = "机器人体验付款";
    public static final String ORDER_ATTACH = "机器人体验付款附加数据";

    // 货币类型：人民币
    public static final String CURRENCY_CNY = "CNY";

    // 用户OpenID配置
    public static final String SP_OPENID = "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o";
    public static final String SUB_OPENID = "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o";

    // 商品配置
    public static final String MERCHANT_GOODS_ID = "1246464644";
    public static final String WECHATPAY_GOODS_ID = "1001";

    // 支付场景配置
    public static final String PAYER_CLIENT_IP = "14.23.150.211";
    public static final String DEVICE_ID = "013467007045764";

    // 门店信息配置
    public static final String STORE_ID = "1601";
    public static final String STORE_NAME = "甘肃华悦机器人体验店";
    public static final String STORE_AREA_CODE = "730030";
    public static final String STORE_ADDRESS = "甘肃省兰州市城关区中广商务大厦16层";
}